package cn.gok.springboot.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ClassName Student
 * @Description TODO
 * @Author HP
 * @Date 11:52 2022/7/14
 * @Version 1.0
 **/
@Data
@Component("student")
public class Student {
    @Value("22")
    private int age;
    @Value("oscar")
    private String name;
}
